
import {newsDetail } from '../../../api/news'
Page({
  data: {
    data: {
      programName: '标题',
      updateTime: '2022-02-02 22:22:22',
      programImg: '',
      programContent: '<p>内容</p>'
    }
  },
  onLoad(e) {
    newsDetail(e.id).then((res) => {
      this.setData({
        // data: res.datas.replace(/<img/g, '<img style="max-width: 100%; display: block; height: auto !important;"')
        data: res.datas
      })
    })

    wx.setNavigationBarTitle({
      title: '公告详情'
    })
  },
})